package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.model.MemberLevelPrivilege;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberLevelPrivilegeMapper extends FsMapper<MemberLevelPrivilege> {

    /**
     * 根据等级ID查询特权信息
     * @param levelId
     * @return
     */
    List<MemberLevelPrivilege> queryListByLevelId(@Param("levelId") Long levelId);

    void addMemberLevelPrivilege(MemberLevelPrivilege level);

    MemberLevelPrivilege selectLevelPrivilegeById(@Param("id") Long id);

    void editMemberLevelPrivilege(MemberLevelPrivilege level);
}